/*
 * $Id: ISystemResource.java,v 1.6 2009/07/24 18:28:22 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.load.system;

import com.ge.healthcare.autosc.common.load.IResourceQueue;
import com.ge.healthcare.autosc.common.pojo.TaskNResource;

public interface ISystemResource {
    public boolean consume(TaskNResource task);
    public void release(TaskNResource task);
    public boolean isAboveDefCon(TaskNResource task);
	public int categoryMax(String category);
	public int categorySize(String category);
	public int svcMax(String svcCenter);
	public int svcSize(String svcCenter);
	public int portMasterMax(String portMaster);
	public int portMasterSize(String portMaster);
	public boolean isConsumed(TaskNResource task);
	public void resetQueue();
	public void resetQueue(int multiplier);
	public ISystemResource copy(int multiplier);
	public void copyCategoryResource(IResourceQueue categoryResource);
	public void copyServiceCenterResource(IResourceQueue svcResource);
	public void copyPortMasterResource(IResourceQueue pmResource);
}
